<?php 
defined('_JEXEC') or die('Restricted access');

AdminUIHelper::startAdminArea ();
	$account=$this->account;
	$type=$account->ac_typeaccount;
	$typeaccount='';
	switch($type)
	{
		case 'nhanvien' : $typeaccount='Nhân viên'; break;
		case 'quantriphongban' : $typeaccount='Quản trị phòng ban'; break;
		case 'quantridonvi' : $typeaccount='Quản trị đơn vị'; break;
		default: break;
	}
?>
<form name="adminForm" method="post">
<input type="hidden" name='idaccount' value='<?php echo $account->ac_id;?>' />
<input type='hidden' name='idcanbo' value='<?php echo $account->ac_idcanbo;?>' />
<input type='hidden' name='task' />
	<fieldset>
		<legend>Chi tiết phòng ban</legend>
		<table class="admintable">
			<tr>
				<td class="key">Tên cán bộ </td>
				<td>
					<?php echo '<b style="font-size:18px">'.$account->cb_ten.'</b>';?>
				</td>
			</tr>
			<tr>
				<td class="key">User name</td>
				<td><input style="width:250px;" type="text" name="username" value="<?php echo $account->ac_username;?>" /></td>
			</tr>
			<tr>
				<td class="key">Password</td>
				<td><input style="width:250px;" type="text" name="password" value="<?php echo $account->ac_password;?>" /></td>
			</tr>
			<tr>
				<td class="key">Email</td>
				<td><input style="width:250px;" type="text" name="email" value="<?php echo $account->ac_email;?>" /></td>
			</tr>
			<tr>
				<td class="key">Quyền truy cập</td>
				<td>
					<select id="typeaccount" name="typeaccount">
					    <?php echo '<option selected="selected" value="'.$type.'">'.$typeaccount.'</option>	';?>
						<option value="nhanvien">Nhân viên</option>	
						<option value="quantriphongban">Quản trị phòng ban</option>	
						<option value="quantridonvi">Quản trị đơn vị</option>	
					</select>
				</td>
			</tr>
		</table>
	</fieldset>
</form>